/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import net.minecraft.entity.Entity;
/*    */ import net.minecraft.entity.EntityLivingBase;
/*    */ import net.minecraft.util.EnumHand;
/*    */ import net.minecraft.util.math.Vec3d;
/*    */ import net.minecraftforge.event.entity.ProjectileImpactEvent;
/*    */ import net.minecraftforge.event.entity.player.AttackEntityEvent;
/*    */ import net.minecraftforge.event.entity.player.PlayerInteractEvent;
/*    */ import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
/*    */ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
/*    */ 
/*    */ 
/*    */ 
/*    */ @EventBusSubscriber(modid = "dragoncore")
/*    */ public class my
/*    */ {
/*    */   @SubscribeEvent
/*    */   public static void v(AttackEntityEvent a) {
/* 20 */     Entity entity = a.getTarget();
/* 21 */     if (entity instanceof EntityLivingBase && xea.m.v((EntityLivingBase)entity) != null) {
/* 22 */       uy.v(entity.func_145782_y(), -1, (Vec3d)null);
/*    */     }
/*    */   }
/*    */   
/*    */   @SubscribeEvent
/*    */   public static void v(PlayerInteractEvent.EntityInteractSpecific a) {
/* 28 */     Entity entity = a.getTarget();
/* 29 */     if (entity instanceof EntityLivingBase && xea.m.v((EntityLivingBase)entity) != null) {
/* 30 */       uy.v(entity.func_145782_y(), (a.getHand() == EnumHand.MAIN_HAND) ? 0 : 1, a.getLocalPos());
/*    */     }
/*    */   }
/*    */   
/*    */   @SubscribeEvent
/*    */   public static void v(ProjectileImpactEvent a) {
/* 36 */     if ((a.getRayTraceResult()).field_72308_g != null) {
/*    */       
/* 38 */       Entity entity = (a.getRayTraceResult()).field_72308_g;
/* 39 */       if (entity instanceof EntityLivingBase && xea.m.v((EntityLivingBase)entity) != null)
/*    */       {
/* 41 */         uy.v(a.getEntity().func_145782_y(), entity.func_145782_y());
/*    */       }
/*    */     } 
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\my.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */